package Myfunction

import "github.com/gin-gonic/gin"

func Hello1(context *gin.Context) {
	//id := context.Param("id")
	//context.String(200, "获取id为%s", id)

	id := context.Query("id")
	name := context.Query("name")

	context.String(200, "id为"+id+"name"+name)
}

func Hello2(context *gin.Context) {

	id := context.QueryArray("id")

	context.String(200, "id数组%s", id)
}
func Hello3(context *gin.Context) {

	users := context.QueryMap("user")

	context.String(200, "id数组%s", users)
}

type Student struct {
	Name string
	Age  int
}
